home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Container Common / binhex.h < prev    next >
Encoding:
Text File  |  1997-01-02  |  1.6 KB  |  49 lines  |  [TEXT/????]

  1. //----------------------------------------------
  2. #if __cplusplus
  3. extern "C" {
  4. #endif
  5. //----------------------------------------------
  6.  
  7. //----------------------------------------------
  8. // Functions
  9. //----------------------------------------------
  10.  
  11. Boolean    IsBinHexFile(FSSpec *pSourceFile, FSSpec *rDestFile);
  12. Boolean    UnpackBinHexFile(FSSpec *pSourceFile, FSSpec *pDestFile, FSSpec *rDestFile);
  13.  
  14. //----------------------------------------------
  15. // Low-level functions
  16. //----------------------------------------------
  17.  
  18. #ifndef NO_OPAQUEBINHEXCLIENTDATA
  19. typedef struct tOpaqueBinHexClientData *tBinHexClientData;
  20. #endif
  21.  
  22. typedef struct tBinHexParser tBinHexParser;
  23.  
  24. typedef struct {
  25.     Str63    fName;
  26.     OSType    fFileType;
  27.     OSType    fFileCreator;
  28.     UInt16    fFinderFlags;
  29.     } tBinHexFileInfo;
  30.  
  31. typedef struct {
  32.     Boolean    (*SetFileInfo)(tBinHexClientData *pClientData, tBinHexFileInfo *pFileInfo);
  33.     Boolean    (*WriteDF)(tBinHexClientData *pClientData, void *pData, long pDataLength);
  34.     Boolean    (*WriteRF)(tBinHexClientData *pClientData, void *pData, long pDataLength);
  35.     } tBinHexParserCallbacks;
  36.  
  37. Boolean    BinHexParser_New(tBinHexClientData *pClientData, tBinHexParserCallbacks *pCallbacks, tBinHexParser **rParser);
  38. void    BinHexParser_Dispose(tBinHexParser *pParser);
  39. Boolean    BinHexParser_Flush(tBinHexParser *pParser);
  40. void    BinHexParser_Kill(tBinHexParser *pParser);
  41. Boolean    BinHexParser_WriteData(tBinHexParser *pParser, void *pData, long pDataLength);
  42. Boolean    BinHexParser_IsBinHex(tBinHexParser *pParser);
  43.  
  44. //----------------------------------------------
  45. #if __cplusplus
  46. }
  47. #endif
  48. //----------------------------------------------
  49.